package com.thead;

public class OutPutThread extends Thread {

    private int count;

    private String threadName;

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public OutPutThread(int count, String threadName) {

        this.count = count;

        this.threadName = threadName;

    }


    @Override
    public void run() {

        System.out.println(threadName+":"+"["+ count +"," + (count +1) + "]");
        super.run();
    }
}
